package com.example.ssmxuankeback.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Schema(name = "EnrollmentDTO", description = "选课记录数据传输对象")
public class EnrollmentDTO {
    //dto没有选课记录的状态、选课时间和选课记录的id
    @Schema(description = "学号")
    @NotNull(message = "学号不能为空")
    private Long studentId;       // 学生ID（S2025001）
    @Schema(description = "课程id")
    @NotNull(message = "课程id不能为空")
    private Long courseId;    // 课程ID
}